﻿using Microsoft.IdentityModel.Tokens;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Excel.Model
{
    public class DataType
    {

        public static void Name(int month)
        {
            DateTime dateTime = DateTime.Now;
            int str = Convert.ToInt32(dateTime.ToString("yyyy"));
            switch (month)
            {
                case 1:
                    month = 1;
                    break;
                case 6:
                    month = 2;
                    break;
                case 7:
                    month = 3;
                    break;
                case 8:
                    month = 4;
                    // 如果需要公式的结果，可以使用 Evaluate 方法，但这通常更复杂
                    break;
                case 9:
                    month = 5;
                    break;
                case 10:
                    month = 6;
                    break;
                case 11:
                    month = 7;
                    break;
                case 12:
                    month = 8;
                    break;
                case 13:
                    month = 9;
                    break;
                case 14:
                    month = 10;
                    break;
                case 15:
                    month = 11;
                    break;
                case 16:
                    month = 12;
                    break;
                default:
                    month = 0;
                    break;
            }
        }
    }
}
